/*---------------------------------------------------------------------------------------------
 *  Copyright (c) Microsoft Corporation. All rights reserved.
 *  Licensed under the MIT License. See License.txt in the project root for license information.
 *--------------------------------------------------------------------------------------------*/

.settings-editor {
	padding-top: 11px;
	margin: auto;
}

/* header styling */
.settings-editor > .settings-header {
	padding-left: 15px;
	padding-right: 5px;
	max-width: 800px;
	box-sizing: border-box;
	margin: auto;
}

.settings-editor > .settings-header > .settings-preview-header {
	margin-bottom: 5px;
}

.settings-editor > .settings-header > .settings-preview-header .settings-preview-label {
	opacity: .7;
}

.settings-editor > .settings-header > .settings-advanced-customization .open-settings-button,
.settings-editor > .settings-header > .settings-advanced-customization .open-settings-button:hover,
.settings-editor > .settings-header > .settings-advanced-customization .open-settings-button:active {
	padding: 0;
	text-decoration: underline;
	display: inline;
}

.settings-editor > .settings-header > .settings-advanced-customization {
	opacity: .7;
	margin-top: 10px;
}

.settings-editor > .settings-header > .settings-preview-header > .settings-preview-warning {
	text-align: right;
	text-transform: uppercase;
	background: rgba(136, 136, 136, 0.3);
	border-radius: 2px;
	font-size: 0.8em;
	padding: 0 3px;
	margin-right: 7px;
}

.settings-editor > .settings-header > .search-container {
	position: relative;
}

.settings-editor > .settings-header .search-container > .settings-search-input {
	vertical-align: middle;
}

.settings-editor > .settings-header .search-container > .settings-search-input > .monaco-inputbox {
	height: 30px;
	width: 100%;
}

.settings-editor > .settings-header .search-container > .settings-search-input > .monaco-inputbox .input {
	font-size: 14px;
	padding-left: 10px;
}

.settings-editor > .settings-header > .settings-header-controls {
	margin-top: 2px;
	height: 30px;
	display: flex;
}

.settings-editor > .settings-header .settings-tabs-widget > .monaco-action-bar .action-item:not(:first-child) .action-label {
	margin-left: 14px;
}

.settings-editor > .settings-header .settings-tabs-widget .monaco-action-bar .action-item .dropdown-icon {
	/** The tab widget container height is shorter than elsewhere, need to tweak this */
	padding-top: 3px;
}

.settings-editor > .settings-header > .settings-header-controls .settings-header-controls-right {
	margin-left: auto;
	padding-top: 3px;
	display: flex;
}

.settings-editor > .settings-header > .settings-header-controls .settings-header-controls-right #configured-only-checkbox {
	flex-shrink: 0;
}

.settings-editor > .settings-header > .settings-header-controls .settings-header-controls-right .configured-only-label {
	white-space: nowrap;
	margin-right: 10px;
	margin-left: 2px;
	opacity: 0.7;
}

.settings-editor > .settings-body .settings-tree-container .monaco-tree-wrapper {
	max-width: 800px;
	margin: auto;
}

.settings-editor > .settings-body .settings-tree-container .monaco-scrollable-element .shadow.top-left-corner {
	left: calc((100% - 800px)/2);
}

.settings-editor > .settings-body .settings-tree-container .monaco-scrollable-element .shadow {
	left: calc((100% - 794px)/2);
	width: 800px;
}

.settings-editor > .settings-body .settings-tree-container .monaco-tree::before {
	outline: none !important;
}

.settings-editor > .settings-body .settings-tree-container {
	flex: 1;
	border-spacing: 0;
	border-collapse: separate;
	position: relative;
}

.settings-editor > .settings-body > .settings-tree-container .setting-item {
	cursor: default;
	white-space: normal;
	display: flex;
	height: 100%;
	min-height: 75px;
}

.settings-editor > .settings-body > .settings-tree-container .setting-item.odd:not(.focused):not(.selected):not(:hover),
.settings-editor > .settings-body > .settings-tree-container .monaco-tree:not(:focus) .setting-item.focused.odd:not(.selected):not(:hover),
.settings-editor > .settings-body > .settings-tree-container .monaco-tree:not(.focused) .setting-item.focused.odd:not(.selected):not(:hover) {
	background-color: rgba(130, 130, 130, 0.04);
}

.settings-editor > .settings-body > .settings-tree-container .setting-item > .setting-item-left {
	flex: 1;
	padding-top: 3px;
	padding-bottom: 12px;
}

.settings-editor > .settings-body > .settings-tree-container .setting-item > .setting-item-right {
	min-width: 180px;
	margin: 21px 10px 0px 5px;
}

.settings-editor > .settings-body > .settings-tree-container .setting-item .setting-item-title {
	line-height: initial;
}

.settings-editor > .settings-body > .settings-tree-container .setting-item .setting-item-title .setting-item-is-configured-label {
	font-style: italic;
	opacity: 0.8;
	margin-right: 7px;
}

.settings-editor > .settings-body > .settings-tree-container .setting-item .setting-item-title .setting-item-overrides {
	opacity: 0.5;
	font-style: italic;
}

.settings-editor > .settings-body > .settings-tree-container .setting-item .setting-item-label {
	margin-right: 7px;
}

.settings-editor > .settings-body > .settings-tree-container .setting-item .setting-item-label,
.settings-editor > .settings-body > .settings-tree-container .setting-item .setting-item-category {
	font-weight: bold;
}

.settings-editor > .settings-body > .settings-tree-container .setting-item .setting-item-category {
	opacity: 0.7;
}

.settings-editor > .settings-body > .settings-tree-container .setting-item .setting-item-description {
	opacity: 0.7;
	margin-top: 3px;
	height: 36px;
	overflow: hidden;
	white-space: pre-wrap;
}

.settings-editor > .settings-body > .settings-tree-container .setting-measure-container.monaco-tree-row {
	padding-left: 15px;
	opacity: 0;
	max-width: 800px;
}

.settings-editor > .settings-body > .settings-tree-container .setting-item.is-expanded .setting-item-description,
.settings-editor > .settings-body > .settings-tree-container .setting-item.setting-measure-helper .setting-item-description {
	height: initial;
}

.settings-editor > .settings-body > .settings-tree-container .setting-item .setting-item-value > .edit-in-settings-button,
.settings-editor > .settings-body > .settings-tree-container .setting-item .setting-item-value > .edit-in-settings-button:hover,
.settings-editor > .settings-body > .settings-tree-container .setting-item .setting-item-value > .edit-in-settings-button:active {
	margin: auto;
	text-align: left;
	text-decoration: underline;
}

.settings-editor > .settings-body > .settings-tree-container .setting-item .setting-item-value > .edit-in-settings-button + .setting-reset-button.monaco-button {
	display: none;
}

.settings-editor > .settings-body > .settings-tree-container .setting-item .monaco-select-box {
	width: 100%;
	font: inherit;
	height: 26px;
}

.settings-editor > .settings-body > .settings-tree-container .setting-item .setting-item-value > .setting-reset-button.monaco-button {
	text-align: left;
	display: block;
	visibility: hidden;

	padding-top: 0px; /* So focus outline doesn't overlap the control above */
}

.settings-editor > .settings-body > .settings-tree-container .setting-item.is-configured .setting-item-value > .setting-reset-button.monaco-button {
	visibility: visible;
}

.settings-editor > .settings-body > .settings-tree-container .setting-item .expand-indicator {
	visibility: hidden;
	position: absolute;
	bottom: -2px;
	width: calc(100% - 190px);
	text-align: center;
	opacity: .5;
}

.settings-editor > .settings-body > .settings-tree-container .setting-item.is-expandable .expand-indicator {
	visibility: visible;
}

.settings-editor > .settings-body > .settings-tree-container .all-settings {
	display: flex;
}

.settings-editor > .settings-body > .settings-tree-container .all-settings .all-settings-button {
	margin: auto;
}

.settings-editor > .settings-body > .settings-tree-container .all-settings .all-settings-button .monaco-button {
	padding-left: 10px;
	padding-right: 10px;
}

/*
	Ensure the is-configured indicators can appear outside of the list items themselves:
	- Disable overflow: hidden on the listrow
	- Allocate some space with a margin on the list-row
	- Make up for that space with a negative margin on the settings-body

	This is risky, consider a different approach
*/
.settings-editor .settings-tree-container .setting-item {
	overflow: visible;
}

.settings-editor > .settings-body > .settings-tree-container .settings-group-title-label {
	margin: 0px;
	padding: 5px 0px;
	font-size: 13px;
}

.settings-editor > .settings-body .settings-feedback-button {
	color: rgb(255, 255, 255);
	background-color: rgb(14, 99, 156);
	position: absolute;
	bottom: 0;
	right: 0;
	width: initial;
	margin-right: 15px;
	margin-bottom: 15px;
	padding: 10px;
	border-radius: 5px;
}
